import React,{ Component } from "react";
import {　View,Text,WebView　} from "react-native";

export default class Resourcedetails extends Component {
    static navigationOptions = ({ navigation })=>({
        title:navigation.getParam("title"),
        headerStyle:{
            backgroundColor:'#d04542',
            height:50,
        },
        headerTintColor:'white',
    });
    render(){
        const { navigation } = this.props;
         const url = navigation.getParam("url");
        return (
            <View style={{ flex:1, }}>
                <WebView source={{uri:url}}  startInLoadingState={true}/>
            </View>
        )
    }
}